package org.xiaoyu.server;

import com.xiaoyu.stereotype.Component;
import org.xiaoyu.api.HappyService;
import org.xiaoyu.rpc.common.annotations.RpcService;

/**
 * Created By Have
 * 2021/7/15 14:59
 */

@RpcService(interfaceClass = HappyService.class, serviceName = "happy", path = "/happy", weight = 2)
@Component
public class HappyServiceImpl implements HappyService {
    @Override
    public String sayHappy() {
        return "Im happy";
    }

    @Override
    public String sayFine() {
        return "Im fine";
    }
}
